package interviewpreparationkit.array

import org.junit.jupiter.api.Test
import java.util.*

class MinimumBribesTests {
    @Test
    fun minimumBribes() {
        for (i in 0 .. 2) {
            val scan = Scanner(MinimumBribesTests::class.java.getResourceAsStream("/minimumBribes-$i.txt"))
            val t = scan.nextLine().trim().toInt()
            println("Test Case $i")
            for (tItr in 1..t) {
                val n = scan.nextLine().trim().toInt()

                val q = scan.nextLine().split(" ").map { it.trim().toInt() }.toTypedArray()

                minimumBribes(q)
            }
        }
    }
}